<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Blogcomment
 */
class Blogcomment
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var string
     */
    private $author;

    /**
     * @var string
     */
    private $email;

    /**
     * @var string
     */
    private $comment;

    /**
     * @var \Keio\StudyBundle\Entity\Blog
     */
    private $blog;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set author
     *
     * @param string $author
     * @return Blogcomment
     */
    public function setAuthor($author)
    {
        $this->author = $author;
    
        return $this;
    }

    /**
     * Get author
     *
     * @return string 
     */
    public function getAuthor()
    {
        return $this->author;
    }

    /**
     * Set email
     *
     * @param string $email
     * @return Blogcomment
     */
    public function setEmail($email)
    {
        $this->email = $email;
    
        return $this;
    }

    /**
     * Get email
     *
     * @return string 
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Set comment
     *
     * @param string $comment
     * @return Blogcomment
     */
    public function setComment($comment)
    {
        $this->comment = $comment;
    
        return $this;
    }

    /**
     * Get comment
     *
     * @return string 
     */
    public function getComment()
    {
        return $this->comment;
    }

    /**
     * Set blog
     *
     * @param \Keio\StudyBundle\Entity\Blog $blog
     * @return Blogcomment
     */
    public function setBlog(\Keio\StudyBundle\Entity\Blog $blog = null)
    {
        $this->blog = $blog;
    
        return $this;
    }

    /**
     * Get blog
     *
     * @return \Keio\StudyBundle\Entity\Blog 
     */
    public function getBlog()
    {
        return $this->blog;
    }
    /**
     * @var \DateTime
     */
    private $datecreate;


    /**
     * Set datecreate
     *
     * @param \DateTime $datecreate
     * @return Blogcomment
     */
    public function setDatecreate($datecreate)
    {
        $this->datecreate = $datecreate;
    
        return $this;
    }

    /**
     * Get datecreate
     *
     * @return \DateTime 
     */
    public function getDatecreate()
    {
        return $this->datecreate;
    }
}